/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package questao04;

/**
 *
 * @author SDKW
 */
public class AdicionalDecorator extends Base {

    private Base yogurtBase = null;
	
    
    public AdicionalDecorator(Base yogurtBase) {
        this.yogurtBase = yogurtBase;
    }
    
    @Override
    public String getNome() {
        return yogurtBase.getNome();
    }

    @Override
    public double getPreco() {
        return yogurtBase.getPreco();
    }
    
}
